package com.net.xpay.core.manager.auto;

import com.net.common.manager.VersionedManager;
import com.net.xpay.core.domain.auto.AutoPayTransBatch;
import com.net.xpay.core.model.AutoPayTransBatchSearchModel;

import java.util.List;


public interface AutoPayTransBatchManager extends VersionedManager<Long,AutoPayTransBatch> {
    AutoPayTransBatch findByBizId(Long userId, String bizId);

    /**
     * 条件分页搜索
     * @param searchModel
     * @return
     */
    List<AutoPayTransBatch> search(AutoPayTransBatchSearchModel searchModel);

    /**
     * 搜索次数
     * @param searchModel
     * @return
     */
    long searchCount(AutoPayTransBatchSearchModel searchModel);

    AutoPayTransBatch findById(Long userId, Long id);

    List<AutoPayTransBatch> list(AutoPayTransBatchSearchModel searchModel);
}
